<html>
<head>
 <!--
    CPAINT (Cross-Platform Asynchronous INterface Toolkit) - Version 2

    http://sf.net/projects/cpaint
    
    released under the terms of the GPL
    see http://www.fsf.org/licensing/licenses/gpl.txt for details

    authors:  Paul Sullivan <wiley14@gmail.com>, Dominique Stender <dstender@st-webdevelopment.de>
    Copyright (c) 2005-2006 Paul Sullivan, Dominique Stender - http://sf.net/projects/cpaint
  //-->
	<title>cpaint2 objects test</title>
	<script type="text/javascript" src="../../cpaint2.inc.compressed.js"></script>
	<script type="text/javascript">
	<!--
		var cp = new cpaint();
		cp.set_response_type('text');
		cp.set_debug(0);
	
		function ping() {
			cp.call('objects.php', document.getElementById('typeSelect').value, response);
			return false;
		}

		function response(result) {
			document.getElementById('response').innerHTML = result;
		}
	//-->
	</script>
</head>
<body>
	This script verifies that the following constructs are callable by CPAINT:<br />
  <ol>
    <li>stand alone functions</li>
    <li>static class methods</li>
    <li>methods of an object</li>
  </ol>
	<br />
	<form action="#" onSubmit="return ping()">
    <select id="typeSelect">
      <option value="func" selected>stand alone function</option>
      <option value="statc">static class method</option>
      <option value="dynamic">method of an object</option>
    </select>
		<input type="submit" value="trigger response" />
	</form>
	<div id="response"></div>
</body>
</html>
